const { ccclass, property } = cc._decorator;

@ccclass
export default class Helloworld extends cc.Component {

    @property(cc.Sprite)
    icon: cc.Sprite = null;

    start() {
        
        // this._update(0.5)
    }

    silderEvent(obj: cc.Slider) {
        let ratio = obj.progress;
        this._update(ratio);

    }

    _update(ratio: number) {
    //     let material = this.icon.getMaterial(0);
    //     let width = this.icon.spriteFrame.getOriginalSize().width;
    //     let height = this.icon.spriteFrame.getOriginalSize().height;
        // material.setProperty("textureSize", new cc.Vec2(width, height));
    }
}
